<?php echo '';exit;?>
<!--{template common/header}-->
<!--{eval}-->
function klp_BeWeixinf(){ 
if ( strpos($_SERVER['HTTP_USER_AGENT'], 
'MicroMessenger') !== false ) {
			return true;
		}  
			return false;
	}

function klp_BeMobilef() {
  if (isset($_SERVER['HTTP_X_WAP_PROFILE'])) {
    return true;
  }
  if (isset($_SERVER['HTTP_VIA'])) {
    return stristr($_SERVER['HTTP_VIA'], "wap") ? true : false;
  }

  if (isset($_SERVER['HTTP_USER_AGENT'])) {
    $clientkeywords = array('nokia','sony','ericsson','mot','samsung','htc','sgh','lg','sharp','sie-','philips','panasonic','alcatel','lenovo','iphone','ipod','blackberry','meizu','android','netfront','symbian','ucweb','windowsce','palm','operamini','operamobi','openwave','nexusone','cldc','midp','wap','mobile','MicroMessenger');

    if (preg_match("/(" . implode('|', $clientkeywords) . ")/i", strtolower($_SERVER['HTTP_USER_AGENT']))) {
      return true;
    }
  }

  if (isset ($_SERVER['HTTP_ACCEPT'])) {

    if ((strpos($_SERVER['HTTP_ACCEPT'], 'vnd.wap.wml') !== false) && (strpos($_SERVER['HTTP_ACCEPT'], 'text/html') === false || (strpos($_SERVER['HTTP_ACCEPT'], 'vnd.wap.wml') < strpos($_SERVER['HTTP_ACCEPT'], 'text/html')))) {
      return true;
    }
  }
  return false;
}
<!--{/eval}-->
<!--{eval}-->
$huyou_zisyset = $_G['cache']['plugin']['huyou_zisy_set'];
<!--{/eval}-->
<!--{if $huyou_zisyset}-->
<!--{eval}-->
$listcityset = C::t('#huyou_zisy_set#huyou_zisyset')->get_listall();
<!--{/eval}-->
<!--{/if}-->

<!--{eval $loginhash = 'L'.random(4);}-->
<style type="text/css">
	.pg_logging .klp_phpnvwp{display: none;}
	.pg_logging #wp{width:100%; min-height: 600px; background-image: url(<!--{eval echo $listcityset['bg_login']}-->); background-size: 100% 100%; background-position: 0 0; background-repeat: no-repeat;}
	.pg_logging #wp .wp#ct{width:1200px; margin: 0 auto;}
	.pg_logging .nfl{float: right;}
	.pg_logging .klp_memcon{ float: right;}
	.klp_hdc{display: none;}
	.reg_link{display: none;}
	.klp_lostpass{}
	.lostpassbtn table{width:100%;}
	.lostpassbtn table button span{color: #3298d6; font-size: 16px; font-weight: 700;}
	
@media(max-width:1200px){
		.pg_logging #wp{width:100%; min-height: 100px; background: none;}
	    .pg_logging #wp .wp#ct{width:100%; margin: 0 auto;}
		.pg_logging .klp_memcon{ float: none;}
		.pg_logging .nfl{float: none;}
		.pg_logging{background: #fff;}
		.klp_tylogin{margin: 20px auto 30px;}
	}
</style>
<!--{if empty($_GET['infloat'])}-->

<div id="ct" class="ptm wp w cl " >
	<div class="klp_memcon">
	<div class="nfl" id="main_succeed" style="display: none">
		<div class="f_c altw">
			<div class="alert_right">
				<p id="succeedmessage"></p>
				<p id="succeedlocation" class="alert_btnleft"></p>
				<p class="alert_btnleft"><a id="succeedmessage_href">{lang message_forward}</a></p>
			</div>
		</div>
	</div>
	<div class="mn klp_tylogin <!--{if !klp_BeMobilef()}-->klp_pclogin <!--{/if}-->" id="main_message">
		<div class="bm">
			<div class="bm_h bbs">
				<span class="y">
					<!--{hook/logging_side_top}-->
					<a href="member.php?mod={$_G[setting][regname]}" class="xi2">{lang login_guest}</a>
				</span>
				<!--{if !$secchecklogin2}-->
					<h3 class="xs2">{lang login}</h3>
				<!--{else}-->
					<h3 class="xs2">{lang login_seccheck2}</h3>
				<!--{/if}-->
			</div>
			
		<div class="klp_tyloginbd <!--{if !klp_BeMobilef()}-->klp_pcloginbd <!--{else}-->klp_mloginbd<!--{/if}-->">
<!--{/if}-->

<div id="main_messaqge_$loginhash"{if $auth} style="width: auto"{/if} class="klp_loginm">
	<div id="layer_login_$loginhash" class="klp_membermain">
		<h3 class="flb">
			<em id="returnmessage_$loginhash">
				<!--{if !empty($_GET['infloat'])}--><!--{if !empty($_GET['guestmessage'])}-->{lang login_guestmessage}<!--{elseif $auth}-->{lang profile_renew}<!--{else}-->{lang login_member}<!--{/if}--><!--{/if}-->
			</em>
			<span><!--{if !empty($_GET['infloat']) && !isset($_GET['frommessage'])}--><a href="javascript:;" class="flbc" onclick="hideWindow('$_GET[handlekey]', 0, 1);" title="{lang close}">{lang close}</a><!--{/if}--></span>
		</h3>
		<!--{hook/logging_top}-->
		<form method="post" autocomplete="off" name="login" id="loginform_$loginhash" class="cl" onsubmit="{if $this->setting['pwdsafety']}pwmd5('password3_$loginhash');{/if}pwdclear = 1;ajaxpost('loginform_$loginhash', 'returnmessage_$loginhash', 'returnmessage_$loginhash', 'onerror');return false;" action="member.php?mod=logging&action=login&loginsubmit=yes{if !empty($_GET['handlekey'])}&handlekey=$_GET[handlekey]{/if}{if isset($_GET['frommessage'])}&frommessage{/if}&loginhash=$loginhash">
			<div class="c cl klp_memberformc">
				<input type="hidden" name="formhash" value="{FORMHASH}" />
				<input type="hidden" name="referer" value="{echo dreferer()}" />
				<!--{if $auth}-->
					<input type="hidden" name="auth" value="$auth" />
				<!--{/if}-->
				
				<!--{if $invite}-->
				<div class="rfm">
					<table>
						<tr>
							<th>{lang register_from}</th>
							<td><a href="home.php?mod=space&uid=$invite[uid]" target="_blank">$invite[username]</a></td>
						</tr>
					</table>
				</div>
				<!--{/if}-->

				<!--{if !$auth}-->
				<div class="rfm">
					<table>
						<tr>
			
							<td><input type="text" name="username" id="username_$loginhash" autocomplete="off" size="30" class="px p_fre ico_zcuser" tabindex="1" value="$username" placeholder="{lang username}" /></td>
							
						</tr>
					</table>
				</div>
				<div class="rfm">
					<table>
						<tr>
							
							<td><input type="password" id="password3_$loginhash" name="password" onfocus="clearpwd()" size="30" class="px p_fre ico_zcpass" tabindex="1" placeholder="{lang login_password}"/></td>
							
						</tr>
					</table>
				</div>
				<!--{/if}-->

				<!--{if empty($_GET['auth']) || $questionexist}-->
				<div class="rfm">
					<table>
						<tr>
							
							<td><select id="loginquestionid_$loginhash" class="sel_list" width="213" name="questionid"{if !$questionexist} onchange="if($('loginquestionid_$loginhash').value > 0) {$('loginanswer_row_$loginhash').style.display='';} else {$('loginanswer_row_$loginhash').style.display='none';}"<!--{/if}-->>
								<option value="0"><!--{if $questionexist}-->{lang security_question_0}<!--{else}-->{lang security_question}<!--{/if}--></option>
								<option value="1">{lang security_question_1}</option>
								<option value="2">{lang security_question_2}</option>
								<option value="3">{lang security_question_3}</option>
								<option value="4">{lang security_question_4}</option>
								<option value="5">{lang security_question_5}</option>
								<option value="6">{lang security_question_6}</option>
								<option value="7">{lang security_question_7}</option>
							</select></td>
					
						</tr>
					</table>
				</div>
				<div class="rfm" id="loginanswer_row_$loginhash" {if !$questionexist} style="display:none"{/if}>
					<table>
						<tr>
							
							<td><input type="text" name="answer" id="loginanswer_$loginhash" autocomplete="off" size="30" class="px p_fre klp_answer" tabindex="1" placeholder="{lang security_a}" /></td>
							
						</tr>
					</table>
				</div>
				<!--{/if}-->
	<div class="klp_msec">
				<!--{if $seccodecheck}-->
					<!--{block sectpl}--><div class="rfm"><table><tr><th><sec>: </th><td class="klp_sectd"><sec><ul><sec></ul></td></tr></table></div><!--{/block}-->
					<!--{subtemplate common/seccheck}-->
				<!--{/if}-->
		</div>
				<!--{hook/logging_input}-->

				<div class="rfm {if !empty($_GET['infloat'])} bw0{/if} klp_zddl">
					<table>
						<tr>
							
							<td><label for="cookietime_$loginhash"><input type="checkbox" class="pc" name="cookietime" id="cookietime_$loginhash" tabindex="1" value="2592000" $cookietimecheck />{lang login_permanent}</label>
								<!--{if $this->setting['sitemessage'][login] && empty($_GET['infloat'])}--><a href="javascript:;" id="custominfo_login_$loginhash" class="y">&nbsp;<img src="{IMGDIR}/info_small.gif" alt="{lang faq}" class="vm" /></a><!--{/if}-->
								<!--{if !$this->setting['bbclosed'] && empty($_GET['infloat'])}--><a href="javascript:;" onclick="ajaxget('member.php?mod=clearcookies&formhash={FORMHASH}', 'returnmessage_$loginhash', 'returnmessage_$loginhash');return false;" title="{lang login_clearcookies}" class="">{lang login_clearcookies}</a><!--{/if}-->
								
								<a href="javascript:;" onclick="display('layer_login_$loginhash');display('layer_lostpw_$loginhash');" title="{lang getpassword}">{lang getpassword}</a>
							</td>
						</tr>
					</table>
				</div>

				<div class="rfm  bw0">
					<table width="100%">
						<tr>
							
							<td>
								<button class="pn pnc" type="submit" name="loginsubmit" value="true" tabindex="1"><strong>{lang login}</strong></button>
							</td>
							
						</tr>
					</table>
				</div>
		<!--{if  $huyou_zisyset['huyou_zisy_dengluauto'] }-->
				<!--{if !empty($_G['setting']['pluginhooks']['logging_method'])}-->
					<div class="rfm bw0 {if empty($_GET['infloat'])} mbw{/if} klp_loginother" >
								<h2 class="klp_ologinh2">{lang login_method}:</h2>
								<div class="klp_ologindiv"><!--{hook/logging_method}--></div>
						<style type="text/css">.klp_ologinh2{ margin: 10px 0;}.klp_ologindiv{}</style>
					</div>
				<!--{/if}-->
		<!--{else}-->
				<div class="klp_otherlogin">

						<h2>合作账号</h2>
						<div class="login_other">
							<a href="{$huyou_zisyset['huyou_zisy_qqurl']}" class="login_mqq">QQ登录</a>
							
							<!--{if !klp_BeMobilef()}-->
							<a {$huyou_zisyset['huyou_zisy_weixinpc']} class="login_mwx" rel="nofollow">微信登录</a><!--{else}--> 
							
							<a href="{$huyou_zisyset['huyou_zisy_weixinurl']}" class="login_mwx" rel="nofollow">微信登录</a>
							<!--{/if}-->
							
						</div>
						<div class="klp_cl"></div>
						<p class="reg_link" style="text-align:center;"><a href="member.php?mod={$_G[setting][regname]}">立即注册</a></p>

				</div>
		<!--{/if}-->
		
			</div>
		</form>
	</div>
	<!--{if $_G['setting']['pwdsafety']}-->
		<script type="text/javascript" src="{$_G['setting']['jspath']}md5.js?{VERHASH}" reload="1"></script>
	<!--{/if}-->
	<div id="layer_lostpw_$loginhash" class="klp_lostpass" style="display: none;">
		<h3 class="flb cl">
			<em id="returnmessage3_$loginhash">{lang getpassword}</em>
			<span><!--{if !empty($_GET['infloat']) && !isset($_GET['frommessage'])}--><a href="javascript:;" class="flbc" onclick="hideWindow('login')" title="{lang close}">{lang close}</a><!--{/if}--></span>
		</h3>
		<form method="post" autocomplete="off" id="lostpwform_$loginhash" class="cl" onsubmit="ajaxpost('lostpwform_$loginhash', 'returnmessage3_$loginhash', 'returnmessage3_$loginhash', 'onerror');return false;" action="member.php?mod=lostpasswd&lostpwsubmit=yes&infloat=yes">
			<div class="c cl">
				<input type="hidden" name="formhash" value="{FORMHASH}" />
				<input type="hidden" name="handlekey" value="lostpwform" />
				<div class="rfm">
					<table>
						<tr>
							<th><span class="rq">*</span><label for="lostpw_email">{lang email}:</label></th>
							<td><input type="text" name="email" id="lostpw_email" size="30" value=""  tabindex="1" class="px p_fre" /></td>
						</tr>
					</table>
				</div>
				<div class="rfm">
					<table>
						<tr>
							<th><label for="lostpw_username">{lang username}:</label></th>
							<td><input type="text" name="username" id="lostpw_username" size="30" value=""  tabindex="1" class="px p_fre" /></td>
						</tr>
					</table>
				</div>

				<div class="rfm mbw bw0 lostpassbtn">
					<table>
						<tr>
							
							<td><button class="pn pnc" type="submit" name="lostpwsubmit" value="true" tabindex="100"><span>{lang submit}</span></button></td>
						</tr>
					</table>
				</div>
			</div>
		</form>
	</div>
</div>

<div id="layer_message_$loginhash"{if empty($_GET['infloat'])} class="f_c blr nfl"{/if} style="display: none;">
	<h3 class="flb" id="layer_header_$loginhash">
		<!--{if !empty($_GET['infloat']) && !isset($_GET['frommessage'])}-->
		<em>{lang login_member}</em>
		<span><a href="javascript:;" class="flbc" onclick="hideWindow('login')" title="{lang close}">{lang close}</a></span>
		<!--{/if}-->
	</h3>
	<div class="c"><div class="alert_right">
		<div id="messageleft_$loginhash"></div>
		<p class="alert_btnleft" id="messageright_$loginhash"></p>
	</div>
</div>

<script type="text/javascript" reload="1">
<!--{if !isset($_GET['viewlostpw'])}-->
	var pwdclear = 0;
	function initinput_login() {
		document.body.focus();
		<!--{if !$auth}-->
			if($('loginform_$loginhash')) {
				$('loginform_$loginhash').username.focus();
			}
			<!--{if !$this->setting['autoidselect']}-->
				simulateSelect('loginfield_$loginhash');
			<!--{/if}-->
		<!--{elseif $seccodecheck && !(empty($_GET['auth']) || $questionexist)}-->
			if($('loginform_$loginhash')) {
				safescript('seccodefocus', function() {$('loginform_$loginhash').seccodeverify.focus()}, 500, 10);
			}			
		<!--{/if}-->
	}
	initinput_login();
	<!--{if $this->setting['sitemessage']['login']}-->
	showPrompt('custominfo_login_$loginhash', 'mouseover', '<!--{echo trim($this->setting['sitemessage'][login][array_rand($this->setting['sitemessage'][login])])}-->', $this->setting['sitemessage'][time]);
	<!--{/if}-->

	function clearpwd() {
		if(pwdclear) {
			$('password3_$loginhash').value = '';
		}
		pwdclear = 0;
	}
<!--{else}-->
	display('layer_login_$loginhash');
	display('layer_lostpw_$loginhash');
	$('lostpw_email').focus();
<!--{/if}-->
</script>

<!--{eval updatesession();}-->
<!--{if empty($_GET['infloat'])}-->
	</div></div></div></div>
</div></div>
<!--{/if}-->
<!--{template common/footer}-->